<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CHE_Container</title>
    <script src="../../Cherry.js"></script>
</head>
<body>
<div id="app"></div>
</body>
<script>
    new CherryMain({
        app:"app",
        child:[
            new CHE_Container({
                name:"CHE_Container",   //专属id
                group:"abcd",     //组名
                id:"",                //关键词id 与平常用法一致
                class:"",             //关键词class 与平常用法一致
                height:"200",         // 高 也可以 "10%"
                width:"200",         // 宽 也可以 "10%"
                backgroundColor:"#cccccc", // 背景颜色
                padding:10,            //内边距 也可以[top,right,bottom,left]
                margin:10,             //外边距 也可以[top,right,bottom,left]
                box:{
                    borderRadius:10,    //原角度
                    borderWidth:1,      //边框粗细
                    borderStyle:"solid",//边框样式
                    borderColor:"red",  //边框颜色
                    boxShadow:"0 0 10px #898989", // 阴影
                    boxShadowHover:"0 0 2px #898989" // 鼠标浮动阴影
                },
                methods:{
                    click:function (e,self) {console.log("click")}, //点击
                    mousedown:function(e,self){console.log("mousedown")}, //按下
                    mouseup:function(e,self){console.log("mouseup")},   //弹起
                    mousego:function (e,self) {console.log("mousego")},  //进入触发
                    mouseout:function (e,self) {console.log("mouseout")}  //离开触发
                },
                child:[new CHE_Container({ // child 子控件
                    group:"abcd",
                    height: 20,
                    width: 20,
                    backgroundColor: "red"
                })]
            }),
        ],
        Created:()=>{

        }
    });



</script>
</html>